package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * 贷款信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_loan_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LoanInfoModel {
    @TableId(type = IdType.AUTO)
    private Integer id;//贷款表id
    private String title;//贷款名称
    private String abstracts;//摘要
    private String introduction;//对象

    private String interestRate;//利率
    private String requirement;//条件
    private Double maxMoney;//最高贷款金额
    private String contactInformation;//联系方式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
